{config_load file="index.conf"}
{include file="inc/doctype.tpl"}

<head>
    <title>Message</title>
    {include file="inc/include.tpl"}
</head>

<body>

{include file="inc/logo.tpl"}
{include file="inc/global_menu.tpl"}

{include file="profile/inc/data.tpl"}<br />
<div><strong>Message</strong></div><br />

<!--// Сообщение -->
<div>
	<a href="/another/index/{$message.user_id}/">{$message.user_login|escape}</a> {$item.message_created}<br />
	<b>{$message.message_title|escape}</b>
	<p>{$message.message_content}</p>
	{if $user_id != $message.user_id}<a href="/another/send/{$message.user_id}/">Answer</a>{/if}
</div>
<!--// Сообщение -->

{*if sizeof($history)}
<h4>Переписка</h4>
<!--// Переписка -->
    {foreach from=$history item=item}
    <table border="0" cellpadding="5">
        <td valign="top">
             {$item.user_name}: <span><b>{$item.message_title|escape}</b></span>
            <p>{$item.message_content}</p>
        </td>
    </table>
    {/foreach}
<!--// Переписка -->
{/if*}

<a href="/profile/messages/">My messages</a><br />
{include file="profile/inc/return.tpl"}

</body>

</html>  